package com.infnoon.ojback.model.dto.contest;

import com.infnoon.ojback.common.PageRequest;
import com.infnoon.ojback.model.entity.Question;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.List;

/**
 * 查询请求
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class ContestQueryRequest extends PageRequest implements Serializable {
    /**
     * 比赛名称
     */
    private String contestName;

    /**
     * 比赛题目(JSON数组)
     */
    private List<Question> contestTasks;

    /**
     * 举办此场比赛的用户 id
     */
    private Long userId;

    private static final long serialVersionUID = 1L;
}